package diancan;
//菜品类
class Dish{
    private String id;  //设置菜品编号
    private String name;    //菜品名
    private double price;   //菜品价格
    private String type;    //菜品类型

    public Dish(){}     //空参构造
    public Dish(String id,String name,double price,String type){
        this.id=id;
        this.name=name;
        this.price=price;
        this.type=type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
